package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章评论对象 article_comments
 * 
 * @author ruoyi
 * @date 2025-07-15
 */
public class ArticleComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章评论唯一标识 */
    private Long articleCommentId;

    /** 被评论的文章id */
    @Excel(name = "被评论的文章id")
    private Long articleId;

    /** 父评论id（空为顶层） */
    @Excel(name = "父评论id", readConverterExp = "空=为顶层")
    private Long parentCommentId;

    /** 评论人id */
    @Excel(name = "评论人id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论图片/富文本内容 */
    @Excel(name = "评论图片/富文本内容")
    private String images;

    public void setArticleCommentId(Long articleCommentId) 
    {
        this.articleCommentId = articleCommentId;
    }

    public Long getArticleCommentId() 
    {
        return articleCommentId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setParentCommentId(Long parentCommentId) 
    {
        this.parentCommentId = parentCommentId;
    }

    public Long getParentCommentId() 
    {
        return parentCommentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleCommentId", getArticleCommentId())
            .append("articleId", getArticleId())
            .append("parentCommentId", getParentCommentId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("images", getImages())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
